package com.example.administrator.daydayappmarket.recommend.moduls;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by Administrator on 2016/12/27.
 */

public class RecommendPicItem extends RecommendParentItem {

    private String id;
    private String image;
    private String topic_name;
    private String topic_title;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getTopic_name() {
        return topic_name;
    }

    public void setTopic_name(String topic_name) {
        this.topic_name = topic_name;
    }

    public String getTopic_title() {
        return topic_title;
    }

    public void setTopic_title(String topic_title) {
        this.topic_title = topic_title;
    }

    @Override
    public void JsonParse(JSONObject jsonObject) {
        try {
            image = jsonObject.getString("image");
            topic_name = jsonObject.getString("topic_name");
            topic_name = jsonObject.getString("topic_name");
            topic_title = jsonObject.getString("topic_name");
            id = jsonObject.getJSONObject("data").getString("id");
        } catch (JSONException e) {
            e.printStackTrace();
        }
    }
}
